package io.renren.modules.workmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.workmanagement.entity.WorkAnswerEntity;
import io.renren.modules.workmanagement.vo.FillAnswerVO;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author yewei
 * @email sunlightcs@gmail.com
 * @date 2022-04-28 00:25:04
 */
public interface WorkAnswerService extends IService<WorkAnswerEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void fillAnswer(FillAnswerVO fillAnswerVO, Long userId);

    void removeByQuId(Long quId);

    List<WorkAnswerEntity> getByWorkIdAndUserId(Long workId, Long userId);

    List<WorkAnswerEntity> getByWorkIdAndUserIdAndQuId(Long workId, Long quId, Long userId);

    List<WorkAnswerEntity> getByQuIds(List<Long> quIds);
}

